package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.model.order.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 支付信息表 服务类
 * </p>
 *
 * @author atguigu
 * @since 2024-04-16
 */
public interface PaymentInfoService extends IService<PaymentInfo> {

    //保存交易记录
    void savePaymentInfo(OrderInfo orderInfo, Integer paymentType);

    //更新支付状态
    void paySuccess(String outTradeNo, Integer status, Map<String, String> resultMap);

    //根据订单id查询订单表
    PaymentInfo getPaymentInfo(Long orderId);
}
